package cn.sciento.farm.devicemanager.api.jsonrpc;


import cn.sciento.farm.devicemanager.dao.model.AlarmForm;
import cn.sciento.farm.devicemanager.dao.model.ResponseMessage;
import cn.sciento.farm.devicemanager.dao.model.filter.AlarmLogFilter;
import com.googlecode.jsonrpc4j.JsonRpcMethod;
import com.googlecode.jsonrpc4j.JsonRpcService;

/**
 * 报警
 */
@JsonRpcService(value = "rpc/hardware.alarm")
public interface AlarmJsonApi {

    ResponseMessage create(AlarmForm alarmForm);

    ResponseMessage update(AlarmForm alarmForm);

    ResponseMessage delete(Long id);

    ResponseMessage list(int areaId);

    ResponseMessage get(Long id);

    /**
     * 查询抱警记录
     * @param logFilter
     * @return
     */
    @JsonRpcMethod("get_alarm_log")
    ResponseMessage getAlarmLog(AlarmLogFilter logFilter);



}
